package com.goldcn.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by  on 2016/6/15.
 */
@ConfigurationProperties(prefix = "file")
public class FileConfig {

    private String permitType;
    private String errorCode;
    private String permitSize;
    private String measureType;

    private String videoPermitType;//视频文件类型

    private String videoPermitSize;//视频文件大小


    public String getMeasureType() {
        return measureType;
    }

    public void setMeasureType(String measureType) {
        this.measureType = measureType;
    }

    public Long getPermitSize() {
        return Integer.parseInt(permitSize) * 1024L * 1024L;
    }

    public void setPermitSize(String permitSize) {
        this.permitSize = permitSize;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getPermitType() {
        return permitType;
    }

    public void setPermitType(String permitType) {
        this.permitType = permitType;
    }

    public String getVideoPermitType() {
        return videoPermitType;
    }

    public void setVideoPermitType(String videoPermitType) {
        this.videoPermitType = videoPermitType;
    }

    public Long getVideoPermitSize() {
        return Integer.parseInt(permitSize) * 1024L * 1024L;
    }

    public void setVideoPermitSize(String videoPermitSize) {
        this.videoPermitSize = videoPermitSize;
    }
}
